package com.css.cloudlearn.productornacos.sentinel;

import com.alibaba.csp.sentinel.slots.block.BlockException;

import javax.servlet.http.HttpServletResponse;
import java.util.HashMap;

/**
 * @author 郭辉
 * @className TODO
 * @description TODO
 * @date 2022/11/22 8:48
 * @company 海康威视
 * @since 1.0.0
 */
public class BlockHandler {
    public static Object testSentinelExceptionHanler(long id,BlockException e){
        HashMap<Object, Object> result = new HashMap<>();
        result.put("status", HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
        result.put("message","testSentinelExceptionHanler");
        return result;
    }
}
